<template>
	<div style="margin-top: 2vh;">
		<!-- 轮播 -->
		<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
		  <van-swipe-item v-for="item in list">
			  <img v-lazy="url+item.original_img" style="border-radius: 10px; width:95vw;height: 30vh;">
		<!-- 	  {{item.original_img}} -->
		  </van-swipe-item>
		
		</van-swipe>
		
		
	</div>
	
</template>

<script>
	
	import { mapGetters } from 'vuex'
	export default{
		props:{
			list:{
	          type:Array,
			  required:true
			  }
		},
		data(){
			return{
				
				url:''
			}
			},
		computed: {
		  ...mapGetters([
			  'vuexToken',
			  'vuexUrl'
		  ])
		},
	
		created() {
		   // this.list=this.$parent.list
			 //  this.$nextTick(function(){
				//    this.$store.dispatch("user/vuexTest","哈哈哈").then(e=>{
				//  // console.log(e)
			 // })
			 // // console.log(123)
			 //  })
			 
			 
			 //获取轮播图
			 //    this.$store.dispatch("user/Home_Swipe").then(e=>{
				// 	// console.log(e.data.data)
				// 	this.list=e.data.data
				// })
				
			// console.log(testStr)
			
			this.$store.dispatch("user/Home_Url").then(e=>{
				// console.log(e,111)
			this.url=e
			})
		}
		
		
	}
	
	
</script>

<style>
</style>
